﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="Job_Manager.aspx.cs"
    Theme="admin_skin" Inherits="Admin_Job_Job_Manager" MaintainScrollPositionOnPostback="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>岗位管理</title>
    <link href="../../App_Themes/css/admin_css.css" type="text/css" rel="stylesheet" />
    
    
    <script language="JavaScript" type="text/javascript">
        function winOnload()
        {
            var strCookie=document.cookie;
            
            var arrCookie=strCookie.split("; ");
            var scrolltop;            
            for(var i=0;i<arrCookie.length;i++){
                   var arr=arrCookie[i].split("=");
                   
                   if("scrolltop"==arr[0]){
                          scrolltop=arr[1];
                          break;
                   }
            }                    
            document.getElementById('dvBody').scrollTop= parseInt(scrolltop);
        }
    </script>
        
                 
         
    
   
</head>
<body onload="winOnload();">
    <input id="hidPos" type="hidden" runat="server" />
    <form id="form1" runat="server">
        <table class="table_rightFrame" border="0" cellpadding="0" cellspacing="0" width="100%"
            style="background-color: #999999">
            <tr class="trTable">
                <td align="left" colspan="6" style="height: 24px">
                    <asp:Button ID="btnAddJob" runat="server" OnClick="btnAddJob_Click" Text="新建岗位" SkinID="buttonSkin"
                        CausesValidation="False" Width="60px" /><asp:Button ID="btnDel" runat="server" Text="删除"
                            CausesValidation="False" OnClick="btnDel_Click1" OnClientClick="return confirm('确认要删除吗？');"
                            SkinID="buttonSkin" /><asp:CheckBox ID="ckbAllSelect" runat="server" Text="全选" OnCheckedChanged="ckbAllSelect_CheckedChanged"
                                AutoPostBack="True" />
                </td>
            </tr>
            <tr class="trTable">
                <td colspan="6" align="left">
                    <div onclick="document.getElementById('hidPos').value=document.getElementById('dvBody').scrollTop;document.cookie='scrolltop='+document.getElementById('hidPos').value;"
                        style="overflow-y: scroll; height: 450px; width: 820px" id="dvBody">
                        <asp:GridView ID="gdvJob" runat="server" AutoGenerateColumns="False" OnPageIndexChanging="gdvJob_PageIndexChanging"
                            OnRowCreated="gdvJob_RowCreated" OnSelectedIndexChanging="gdvJob_SelectedIndexChanging"
                            SkinID="gridviewSkin" Width="820px" DataKeyNames="JobId">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="JobId" HeaderText="id" Visible="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="JobName" HeaderText="岗位名称">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="JobRemark" HeaderText="岗位描述">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr class="trTable">
                <td colspan="6">
                    <input id="hId" runat="server" type="hidden" /></td>
            </tr>
            <tr class="trTable">
                <td colspan="6" align="center" style="height: 104px">
                    <br />
                    <table width="60%" cellpadding="0" cellspacing="1" border="0" style="background-color: #999999">
                        <tr class="trTable">
                            <td>
                                <br />
                                <table cellpadding="2" width="100%" cellspacing="0" border="0" style="background-color: #999999">
                                    <tr class="trTable">
                                        <td style="width: 100px">
                                            岗位名称 :&nbsp;
                                        </td>
                                        <td colspan="2" align="left">
                                            <asp:TextBox ID="txtJobName" runat="server" SkinID="textboxSkin"></asp:TextBox>*<asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ErrorMessage="岗位名称不可以为空"
                                                ControlToValidate="txtJobName"></asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr class="trTable">
                                        <td style="width: 100px">
                                            岗位描述 :</td>
                                        <td align="left" colspan="2">
                                            <asp:TextBox ID="txtJobRemark" runat="server" TextMode="MultiLine" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                    </tr>
                                    <tr class="trTable">
                                        <td colspan="3" align="center">
                                            <asp:Button ID="btnAdd" runat="server" Text="确认" OnClick="btnAdd_Click" SkinID="buttonSkin" /></td>
                                    </tr>
                                </table>
                                <br />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
